package com.cc.openeye.dynamic

import com.cc.openeye.base.network.get
import com.cc.openeye.constance.RequestUrlConst
import com.cc.openeye.dynamic.follow.entity.followResponse.FocusResponse
import com.cc.openeye.dynamic.recommend.entity.dynamicResponse.DynamicResponse

class DynamicModel {

    suspend fun requestDynamicData(url: String = RequestUrlConst.DYNAMIC_URL) =
        get<DynamicResponse>(url)

    suspend fun requestFocusData(url: String = RequestUrlConst.FOCUS_URL) =
        get<FocusResponse>(url)

    companion object {
        fun newInstance() = DynamicModel()
    }
}